<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

</body>
<script src="../underscore1.9.1.js"></script>
<script>
    //【1】看一个 _.reduce 的使用例子:
    var sum = _.reduce([1, 2, 3, 4, 5], function(accumulator, value, index, collection) {
        debugger
        return accumulator + value;
    }, 0);
    console.log(sum); // => 15;
</script>

</html>